using System;
using System.Collections.Generic;
using System.Text;
using System.Configuration;
using System.Configuration.Provider;

namespace AAM.DAL
{
    public class BizProviderConfiguration
    {

        private static BizProviderConfigurationSection section = null;

        static BizProviderConfiguration()
        {
            section = (BizProviderConfigurationSection)ConfigurationManager.GetSection("bizProvider");
        }

        public static ProviderBase GetProvider(string name)
        {
            BizProviderConfigurationElement config = section.Providers[name];
            return config.Provider;
        }

    }
}
